package com.sugar.subscribe.course.module.business.controller.admin.coach.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import com.sugar.subscribe.course.framework.excel.core.annotations.DictFormat;
import com.sugar.subscribe.course.framework.excel.core.convert.DictConvert;

import static com.sugar.subscribe.course.module.business.enums.DictTypeConstants.BUSINESS_AUDIT_STATUS;
import static com.sugar.subscribe.course.module.business.enums.DictTypeConstants.BUSINESS_COACH_WORK_TIME;

@Schema(description = "管理后台 - 教练信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CoachRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28633")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19564")
    @ExcelProperty("用户ID")
    private Long userId;

    @Schema(description = "昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("昵称")
    private String nickname;

    @Schema(description = "头像")
    @ExcelProperty("头像")
    private String avatar;

    @Schema(description = "个人简介")
    @ExcelProperty("个人简介")
    private String personalProfile;

    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("姓名")
    private String name;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("手机号")
    private String mobile;

    @Schema(description = "性别 1男 2女（字典：system_user_sex）")
    @ExcelProperty("性别 1男 2女")
    private Integer gender;

    @Schema(description = "从业时间（字典：business_coach_work_time）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "从业时间", converter = DictConvert.class)
    @DictFormat(BUSINESS_COACH_WORK_TIME)
    private String workTime;

    @Schema(description = "审核状态（字典：business_audit_status）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat(BUSINESS_AUDIT_STATUS)
    private Integer auditStatus;

    @Schema(description = "工作状态（0休息中 1上班中）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("工作状态（0休息中 1上班中）")
    private Boolean isWork;

    @Schema(description = "总评分", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("总评分")
    private BigDecimal totalScore;

    @Schema(description = "人均价格（单位分）", requiredMode = Schema.RequiredMode.REQUIRED, example = "9632")
    @ExcelProperty("人均价格（单位分）")
    private Integer perCapitaPrice;

    @Schema(description = "状态（0禁用 1启用）", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean status;

    @Schema(description = "审核拒绝原因", requiredMode = Schema.RequiredMode.REQUIRED)
    private String refuseCause;

    /**
     * 首页推荐（0否 1是）
     */
    private Boolean homeRecommend;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
